import React from 'react';
import {  Button,Input, Select } from 'antd';
import './index.css'
import D3Test from '../test/D3Test'
import SearchsList from './SearchsList'
import SelectList from './SelectList'


export default class FindaBoat extends React.Component{
    constructor(){
        super();
        this.state = {
            value:'1',
        }
    }
    handleChange(){
    }
    bortValue(value){
       this.setState({
           value:value
       })
    }
    render() {
      
        return (
        <div style={{height:'100%'}}>
        {
            this.state.value === '1' ?
            <SearchsList bortValue={this.bortValue.bind(this)}/>
            :
            <SelectList bortValue={this.bortValue.bind(this)}/>     
        }
            <D3Test />
        </div>
    )
    }
}